# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-librelingo-utils
pkgver=2.6.2
pkgrel=2
pkgdesc="Utilities to be used in LibreLingo-related-packages"
url="https://github.com/LibreLingo/LibreLingo"
arch="noarch"
license="AGPL-3.0-only"
depends="
	py3-librelingo-types
	py3-regex
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/l/librelingo_utils/librelingo_utils-$pkgver.tar.gz"
options="!check" # No tests in the PyPi package
builddir="$srcdir/librelingo_utils-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
8e05e14caeab922e108b1e161ca92972ae8588372f8e84c8ca028d6743d2b519df2d77beaf9da8c1be67c2007fc5198229f2fbf5a2882f0142c410a4d28d8fb8  librelingo_utils-2.6.2.tar.gz
"
